/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pos.services;

import com.pos.domain.Customer;
import com.pos.domain.Item;
import com.pos.domain.ItemCategory;
import com.pos.domain.PurchaseDetails;
import com.pos.domain.SalesDetail;

import com.pos.domain.Vendor;
import java.util.List;

/**
 *
 * @author Dipendra
 */
public interface BaseService {

    List<Vendor> findAllSupplier();

    void addSupplier(Vendor supplier);

    Vendor findSupplierById(Object id);

    void removeSupplier(Vendor supplier);

    void saveSupplier(Vendor supplier);

    List<Item> findAllProduct();

    Item findProductById(Object id);

    void saveProduct(Item product);

    List<ItemCategory> findAllCatagory();

    ItemCategory findCategoryById(Object id);

    void saveCategory(ItemCategory category);

    void purchaseItem(PurchaseDetails details);

    void saleItem(SalesDetail detail);

     List<Customer> findAllCustomer();
}
